<template>
	<div class="weekend">
		<div class="Title">周末去哪儿</div>
		<ul>
			<li class="Content border-bottom" v-for='item in weekendList' :key='item.id'>
				<div class="Content-wrapper">
				<img :src="item.imgUrl" class="Content-img">
				</div>
				<div class="item">
					<p class="item-title">{{item.title}}</p>
					<p class="item-content">{{item.desc}}</p>
				</div>
			</li>
		</ul>
	</div>
</template>

<script>
export default {
	name: 'HomeWeekend',
	props: {
		weekendList: Array
	}

}	
</script>

<style lang="stylus" scoped>
	@import '~styles/mixins.styl'
	.Title
		height: .6rem
		background: #eee
		line-height:.6rem
		margin-top: .1rem
	.Content
		width: 100%
		padding-bottom: 50%
		height:0
		overflow: hidden
		.Content-wrapper
			width: 100%
			.Content-img
				width: 100%
		.item
			padding: 0.1rem	
			min-width: 0
			.item-title
				line-height:.3rem
				ellipsis()
			.item-content
				line-height:.5rem
				color: #999
				ellipsis()
				font-size: .24rem

</style>